/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.geaSV.beans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import org.primefaces.model.DashboardColumn;
import org.primefaces.model.DashboardModel;
import org.primefaces.model.DefaultDashboardColumn;
import org.primefaces.model.DefaultDashboardModel;

/**
 *
 * @author vash
 */
@ManagedBean
@RequestScoped
public class dashboardBean {

      private DashboardModel model;  
      
    public dashboardBean() {  
        model = new DefaultDashboardModel();  
        DashboardColumn column1 = new DefaultDashboardColumn();  
        DashboardColumn column2 = new DefaultDashboardColumn(); 
        DashboardColumn column3 = new DefaultDashboardColumn(); 
        DashboardColumn column4 = new DefaultDashboardColumn();
        DashboardColumn column5 = new DefaultDashboardColumn();
        DashboardColumn column6 = new DefaultDashboardColumn();
              
        column1.addWidget("EMPLEADOS"); 
        column2.addWidget("DEPARTAMENTOS");  
        column3.addWidget("MUNICIPIOS"); 
        column4.addWidget("SERVICIOS");
        column5.addWidget("MATERIALES");
        column1.addWidget("PROVEEDORES");
            
  
        model.addColumn(column1);  
        model.addColumn(column2);  
        model.addColumn(column3);
        model.addColumn(column4);
        model.addColumn(column5);
        model.addColumn(column6);
        
   
       
    }  
      
      
    public DashboardModel getModel() {  
        return model;  
    } 
}
